package com.wtwd.device.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author mjy
 * @since 2021-09-24
 */
@ApiModel(value="AppUserMedal对象", description="")
public class AppUserMedal implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "勋章用户关联表主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "勋章id")
    private Long medalId;

    @ApiModelProperty(value = "获取时间")
    private Date obtainTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getMedalId() {
        return medalId;
    }

    public void setMedalId(Long medalId) {
        this.medalId = medalId;
    }

    public Date getObtainTime() {
        return obtainTime;
    }

    public void setObtainTime(Date obtainTime) {
        this.obtainTime = obtainTime;
    }

    @Override
    public String toString() {
        return "AppUserMedal{" +
        "id=" + id +
        ", userId=" + userId +
        ", medalId=" + medalId +
        ", obtainTime=" + obtainTime +
        "}";
    }
}
